-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(fslib): handle .zip
in the middle of file name again
#3042
Conversation
For context that function was added in #2796 to speed up installs / replace this regex .*?(?<!\/)\.zip(?=\/|$) We need to verify that this fix doesn't regress the performance to the point where we could just use the regex |
@merceyz Before: After: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be updated to handle an "unlimited" amount of .zip
occurrences in a filename
@merceyz Which test case is in your mind? The change should have handled multiple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an edge case but here is a failing test case
.zip
in the middle of file name again
b730180
to
485f09f
Compare
485f09f
to
64cd587
Compare
64cd587
to
ee5f023
Compare
What's the problem this PR addresses?
Path with
.zip
in the middle of the file name is not extracted correctly.Closes #2975
How did you fix it?
Added 2 edge cases to the test.
...
Checklist